package com.example.springbootdemo.mall.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.math.BigDecimal;
import java.util.Date;

/**
 *@author xuwangqi
 *@date 2021/5/24 9:28
 **/
/**
    * 商品详情
    */
@ApiModel(value="com-example-springbootdemo-entity-ShoppingCart")
@TableName(value = "shopping_cart")
public class ShoppingCart {
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value="")
    private Long id;

    /**
     * 商品id
     */
    @TableField(value = "product_id")
    @ApiModelProperty(value="商品id")
    private Long productId;

    /**
     * 商品sku id
     */
    @TableField(value = "sku_id")
    @ApiModelProperty(value="商品sku id")
    private Long skuId;

    /**
     * 用户id
     */
    @TableField(value = "member_id")
    @ApiModelProperty(value="用户id")
    private Long memberId;

    /**
     * 商品封面
     */
    @TableField(value = "cover")
    @ApiModelProperty(value="商品封面")
    private String cover;

    /**
     * 加入时价格
     */
    @TableField(value = "price")
    @ApiModelProperty(value="加入时价格")
    private BigDecimal price;

    /**
     * 商品标题
     */
    @TableField(value = "title")
    @ApiModelProperty(value="商品标题")
    private String title;

    @TableField(value = "gmt_modified")
    @ApiModelProperty(value="")
    private Date gmtModified;

    @TableField(value = "gmt_create")
    @ApiModelProperty(value="")
    private Date gmtCreate;

    /**
     * 是否删除，1被删除，0未删除
     */
    @TableField(value = "is_deleted")
    @ApiModelProperty(value="是否删除，1被删除，0未删除")
    private Byte isDeleted;

    /**
     * 商品数量 最大99
     */
    @TableField(value = "amount")
    @ApiModelProperty(value="商品数量 最大99")
    private Integer amount;

    public static final String COL_ID = "id";

    public static final String COL_PRODUCT_ID = "product_id";

    public static final String COL_SKU_ID = "sku_id";

    public static final String COL_MEMBER_ID = "member_id";

    public static final String COL_COVER = "cover";

    public static final String COL_PRICE = "price";

    public static final String COL_TITLE = "title";

    public static final String COL_GMT_MODIFIED = "gmt_modified";

    public static final String COL_GMT_CREATE = "gmt_create";

    public static final String COL_IS_DELETED = "is_deleted";

    public static final String COL_AMOUNT = "amount";

    /**
     * @return id
     */
    public Long getId() {
        return id;
    }

    /**
     * @param id
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 获取商品id
     *
     * @return product_id - 商品id
     */
    public Long getProductId() {
        return productId;
    }

    /**
     * 设置商品id
     *
     * @param productId 商品id
     */
    public void setProductId(Long productId) {
        this.productId = productId;
    }

    /**
     * 获取商品sku id
     *
     * @return sku_id - 商品sku id
     */
    public Long getSkuId() {
        return skuId;
    }

    /**
     * 设置商品sku id
     *
     * @param skuId 商品sku id
     */
    public void setSkuId(Long skuId) {
        this.skuId = skuId;
    }

    /**
     * 获取用户id
     *
     * @return member_id - 用户id
     */
    public Long getMemberId() {
        return memberId;
    }

    /**
     * 设置用户id
     *
     * @param memberId 用户id
     */
    public void setMemberId(Long memberId) {
        this.memberId = memberId;
    }

    /**
     * 获取商品封面
     *
     * @return cover - 商品封面
     */
    public String getCover() {
        return cover;
    }

    /**
     * 设置商品封面
     *
     * @param cover 商品封面
     */
    public void setCover(String cover) {
        this.cover = cover;
    }

    /**
     * 获取加入时价格
     *
     * @return price - 加入时价格
     */
    public BigDecimal getPrice() {
        return price;
    }

    /**
     * 设置加入时价格
     *
     * @param price 加入时价格
     */
    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    /**
     * 获取商品标题
     *
     * @return title - 商品标题
     */
    public String getTitle() {
        return title;
    }

    /**
     * 设置商品标题
     *
     * @param title 商品标题
     */
    public void setTitle(String title) {
        this.title = title;
    }

    /**
     * @return gmt_modified
     */
    public Date getGmtModified() {
        return gmtModified;
    }

    /**
     * @param gmtModified
     */
    public void setGmtModified(Date gmtModified) {
        this.gmtModified = gmtModified;
    }

    /**
     * @return gmt_create
     */
    public Date getGmtCreate() {
        return gmtCreate;
    }

    /**
     * @param gmtCreate
     */
    public void setGmtCreate(Date gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    /**
     * 获取是否删除，1被删除，0未删除
     *
     * @return is_deleted - 是否删除，1被删除，0未删除
     */
    public Byte getIsDeleted() {
        return isDeleted;
    }

    /**
     * 设置是否删除，1被删除，0未删除
     *
     * @param isDeleted 是否删除，1被删除，0未删除
     */
    public void setIsDeleted(Byte isDeleted) {
        this.isDeleted = isDeleted;
    }

    /**
     * 获取商品数量 最大99
     *
     * @return amount - 商品数量 最大99
     */
    public Integer getAmount() {
        return amount;
    }

    /**
     * 设置商品数量 最大99
     *
     * @param amount 商品数量 最大99
     */
    public void setAmount(Integer amount) {
        this.amount = amount;
    }
}